package gdt.dao.jpa;


import gdt.dao.ProjectDAO;
import gdt.entity.Group;
import gdt.entity.Project;

public class JPAProjectDAO extends JPAGenericDAO<Project, Long> implements ProjectDAO {

	public Project findByGroupAndName(Group group, String name) {
		return (Project) getEntityManager().createNamedQuery("findProjectByGroupAndName").setParameter("group", group).setParameter("name", name).getSingleResult();
	}


}
